<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>相对定位结合浮动</title>
		<style>
			#d1,#d2,#d3{
				width: 700px;
				height: 100px;
				background-color: darkgoldenrod;
				margin-bottom: 20px;
			}
			#d2{
				float: left;
				background-color: aqua;
				width: 200px;
			}
			#d1{
				position: relative;
				background-color: blue;
				top: 30px;
				left: 30px;
			}
			#d3{
				position: relative;
				right: -80px;
				bottom: -30px;
			}
		</style>
	</head>
	<body>
		<div id="d1">111</div>
		<div id="d2">222</div>
		<div id="d3">333</div>
	</body>
</html>